package com.lzm.ydpt.mvp.contract;

import com.byt.framlib.basemvp.BaseView;
import com.byt.framlib.basemvp.basebean.BaseResponseBean;
import com.byt.framlib.basemvp.boby.FormBodys;
import com.lzm.ydpt.entity.riding.OrderBean;

import java.util.List;

import io.reactivex.Observable;


/**
 * 接口名称：HomeContract
 * 接口描述：Contract
 */
public interface HomeContract {

    /**
     * 模型接口
     */
    interface Model {
        Observable<BaseResponseBean<List<OrderBean>>> onOrderList(FormBodys formBodys);

        Observable<BaseResponseBean<Integer>> onEdtState(FormBodys formBodys);
    }

    /**
     * 代理接口
     */
    interface Presenter {
        void onOrderList(FormBodys formBodys);

        void onEdtState(FormBodys formBodys,int receiveStatus);
    }

    /**
     * 视图接口
     */
    interface View extends BaseView {
        void onOrderList(List<OrderBean> orderBeans);

        void onEdtState(String message,int receiveStatus);
    }
}